<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String sel = request.getParameter("sel");
	if(sel==null || "".equals(sel)){
		sel = "4";
		%>
		<script type="text/javascript">
			location.href = "<c:url value='/api/order/getorder.jsp'/>?sel=1";
		</script>
		<%
	}
	if(!sel.matches("^[1-9]([0-9])?$")){
		sel = "4";
		%>
		<script type="text/javascript">
			location.href = "<c:url value='/api/order/getorder.jsp'/>?sel=1";
		</script>
		<%
	}
%>
<div class="col-sub">
	<div class="APIgory">
		<ul>
			<li>
				<div class="APIgory-title">
					<a href="<c:url value='/'/>"><span class="APIgory-sub-title">列表API</span></a>
				</div>
			</li>
			<li>
				<div class="APIgory-list <%if(sel.equals("4")){ %>focus <%}%>">
					<div class="APIgory-content">
						<a class="link APIgoryItem title-overflow" href="<c:url value='/api/order/getorder.jsp'/>?sel=4" title="/open/order/getorder">获取订单</a>
					</div>
				</div>
			</li>
<%-- 			<li>
				<div class="APIgory-list <%if(sel.equals("5")){ %>focus <%}%>">
					<div class="APIgory-content">
						<a class="link APIgoryItem title-overflow" href="<c:url value='/api/order/cancelorder.jsp'/>?sel=5" title="/open/order/cancelorder">取消订单</a>
					</div>
				</div>
			</li> --%>
			<li>
				<div class="APIgory-list <%if(sel.equals("6")){ %>focus <%}%>">
					<div class="APIgory-content">
						<a class="link APIgoryItem title-overflow" href="<c:url value='/api/order/updateorder.jsp'/>?sel=6" title="/open/order/updateorder">更新订单</a>
					</div>
				</div>
			</li>
			<li>
				<div class="APIgory-list <%if(sel.equals("7")){ %>focus <%}%>">
					<div class="APIgory-content">
						<a class="link APIgoryItem title-overflow" href="<c:url value='/api/order/checkFlag.jsp'/>?sel=7" title="/open/order/checkFlag">ERP端设置已获取订单flag</a>
					</div>
				</div>
			</li>
<%-- 			<li>
				<div class="APIgory-list <%if(sel.equals("7")){ %>focus <%}%>">
					<div class="APIgory-content">
						<a class="link APIgoryItem title-overflow" href="<c:url value='/api/order/getAccessToken.jsp'/>?sel=7" title="/open/order/getAccessToken">获取accessToken</a>
					</div>
				</div>
			</li> --%>
		</ul>
	</div>
</div>